// 导入userModel
const userModel = require("../models/userModel")
// 编写用户类
class User {
    register(account, password, username, createAt, gender, imgUrl, tag) {
        return userModel.register(account, password, username, createAt, gender, imgUrl, tag);
    }
    login(account, password) {
        return userModel.login(account, password)
    }
    remove(id) {
        return userModel.remove(id)
    }
    items(page_num, page_size) {
        return userModel.items(page_num, page_size)
    }
    // 用户修改 用户名、性别、头像、个性签名 
    modify(username, gender, imgUrl, tag, id) {
        return userModel.modify(username, gender, imgUrl, tag, id)
    }
    modifyPassword(password, id) {
        return userModel.modifyPassword(password, id)
    }
    search(keyword) {
        return userModel.search(keyword)
    }
    detail(id) {
        return userModel.detail(id)
    }
    list() {
        return userModel.list()
    }
}


module.exports = User;